home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-05 | 2.2 KB | 81 lines | [TEXT/MMCC] |
- // CAdd.h -- dialog class
- // Created 10/5/95 4:49 PM by AppMaker
-
- #pragma once
-
- #include <LDialogBox.h>
-
- class LStream;
-
- class LStdButton;
- class LEditField;
- class LRadioGroup;
- class LView;
- class LStdCheckBox;
- class LStdPopupMenu;
-
- #define cmd_Add 'Add '
-
- //----------
- class CAdd : public LDialogBox {
- public: // these comprise the programming interface for using the dialog
- static CAdd* CreateAdd (LCommander *inSuperCommander);
-
- virtual void GetDateFieldString (Str255 str);
- virtual void SetDateFieldString (Str255 str);
- virtual void GetTimeFieldString (Str255 str);
- virtual void SetTimeFieldString (Str255 str);
- virtual long GetAmPmGroupChoice();
- virtual void SetAmPmGroupChoice (long choice);
- virtual void GetMessageFieldString (Str255 str);
- virtual void SetMessageFieldString (Str255 str);
- virtual Boolean GetDisplayIconCheckChoice();
- virtual void SetDisplayIconCheckChoice (Boolean choice);
- virtual Boolean GetDisplayAlertCheckChoice();
- virtual void SetDisplayAlertCheckChoice (Boolean choice);
- virtual Boolean GetPlaySoundCheckChoice();
- virtual void SetPlaySoundCheckChoice (Boolean choice);
- virtual short GetSoundPopupChoice();
- virtual void SetSoundPopupChoice (short choice);
-
- public: // these comprise the implementation
- static CAdd* CreateAddStream (LStream *inStream);
-
- CAdd();
- CAdd (LStream *inStream);
- virtual ~CAdd();
-
- virtual void ListenToMessage (MessageT inMessage,
- void *ioParam);
-
- virtual Boolean ObeyCommand (CommandT inCommand,
- void *ioParam = nil);
- virtual void FindCommandStatus (CommandT inCommand,
- Boolean &outEnabled,
- Boolean &outUsesMark,
- Char16 &outMark,
- Str255 outName);
- virtual Boolean FocusDraw();
-
- protected:
- static void RegisterClass();
- virtual void FinishCreateSelf();
-
- protected:
-
- protected:
- static Boolean sIsRegistered;
-
- LStdButton *mOKButton;
- LStdButton *mCancelButton;
- LEditField *mDateField;
- LEditField *mTimeField;
- LView *mAmPmView;
- LRadioGroup *mAmPmGroup;
- LEditField *mMessageField;
- LStdCheckBox *mDisplayIconCheck;
- LStdCheckBox *mDisplayAlertCheck;
- LStdCheckBox *mPlaySoundCheck;
- LStdPopupMenu *mSoundPopup;
- };
-